// 管理收货地址
<template>
	<div id="orders">
		<div class="top_div">
			<img src="../assets/left.png" />
			<span>管理收货地址</span>
			<router-link to="/Newaddress"><span class="fonde_span">新建</span></router-link>
		</div>
		<div class="wd">我的收货地址</div>

		<div class="item_div" v-for="item in dataList">
			<div class="item_top_div">
				<span>{{ item.Name }}</span>
				<span class="tel_div">{{ item.Tel }}</span>
			</div>
			<div class="item_bottom_div">
				<div class="item_bottom_left_div">
					<p>{{ item.address }}</p>
				</div>
				<router-link to="/EditAddress">
					<img v-for="url in item.img" :src="url" />
				</router-link>
			</div>
		</div>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				dataList: [{
						Name: "小慕",
						Tel: "18911023261",
						address: "北京市海淀区西三环北路 2号院 北京理工大学 国防科技园2号楼 10层",
						img: [require("../assets/right.png")],
					},
					{
						Name: "小慕",
						Tel: "18911023261",
						address: "北京市海淀区西三环北路 2号院 北京理工大学 国防科技园2号楼 13层",
						img: [require("../assets/right.png")],
					},
				],
			};
		},
	};
</script>

<style>
	/* 单独给页面设置背景色 */
	.fonde_span {
		color: #000000;
	}

	#orders {
		background-color: #f8f8f8;
		height: 100%;
		position: fixed;
		width: 100%;
	}

	.title_div {
		height: 44px;
		font-size: 16px;
		color: #333333;
		background: white;
		line-height: 44px;
		text-align: center;
	}

	.item_div {
		background: #ffffff;
		margin-top: 16px;
		margin-left: 18px;
		margin-right: 18px;
		border-radius: 4px;
		padding-left: 16px;
		padding-right: 16px;
		padding-bottom: 16px;
	}

	.item_div .item_top_div {
		height: 54px;
		line-height: 54px;
		display: flex;
		justify-content: space-between;
	}

	.item_div .item_top_div :nth-child(1) {
		font-size: 16px;
		color: #333333;
	}

	.item_div .item_top_div :nth-child(2) {
		font-size: 14px;
		color: #999999;
		padding-right: 120px;
	}

	.item_div .item_bottom_div {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.item_bottom_div .item_bottom_left_div {
		width: 260px;
		height: 40px;
	}

	.top_div {
		display: flex;
		justify-content: space-between;
		align-items: center;
		background: #ffffff;
		padding-left: 20px;
		padding-right: 20px;
		padding-bottom: 15px;
		padding-top: 10px;
		font-size: 16px;
		color: #333333;
		font-family: PingFangSC-Regular;
	}

	.top_div img {
		height: 16px;
		width: 9.3px;
	}

	.wd {
		margin-left: 18px;
		margin-top: 16px;
		margin-bottom: 12px;
		font-size: 14px;
		color: #333333;
	}
</style>
